<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:p="http://primefaces.prime.com.tr/ui">


<head>
<title>Rota Estatisctica - Login</title>
</head>

<body>

	<h3>Login</h3>

	<h:form>

		<rich:messages globalOnly="true" infoStyle="color:blue"
			warnStyle="color:orange" errorStyle="color:red"
			fatalStyle="color:red"></rich:messages>
			
		<h:panelGrid columns="2">
			<h:outputText value="E-mail"></h:outputText>
			<h:inputText value="#{loginView.login}"></h:inputText>

			<h:outputText value="Senha"></h:outputText>
			<h:inputSecret value="#{loginView.senha}"></h:inputSecret>
		</h:panelGrid>
		<!-- 
		<h:panelGroup colspan="2">
			<h:commandLink value="Esqueceu sua senha?" action="PEDIDO_DE_SENHA"></h:commandLink>
		</h:panelGroup>
		 -->
		<h:panelGrid columns="2">
			<h:commandButton value="Login" action="#{loginView.checkLogin}"></h:commandButton>
			<h:commandButton value="Home" action="HOME" immediate="true"></h:commandButton>
		</h:panelGrid>
	</h:form>

</body>
</html>